package com.svo.weitu.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.svo.weitu.R;
import com.svo.weitu.activity.fragment.SetFragment;

public class SetActivity extends AppCompatActivity {
	private Toolbar toolbar;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_set);
		toolbar = (Toolbar) findViewById(R.id.toolbar);
		setSupportActionBar(toolbar);
		toolbar.setNavigationIcon(R.mipmap.ic_back_normal);
		toolbar.setNavigationOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		getFragmentManager().beginTransaction().replace(R.id.frame, new SetFragment()).commit();
	}

}
